//
// Unihan Input Method
//
// Copyright © 2002-2007 Sun Wah Linux Ltd.
//
//
// This library is free software; you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as
// published by the Free Software Foundation; either version 2.1 of the
// License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
// USA
//
// $Id: list_ctrl.h 757 2007-05-10 08:19:31Z roger $
//

#ifndef _LIST_CTRL_H
#define _LIST_CTRL_H

#include <gtk/gtk.h>
#include <glade/glade.h>
#include <gnome.h>
int unihan2_no_list();
/* IM list control */
void IM_treeview_add_column(GtkTreeView *tv);
void IM_refresh_treeview_by_im_list(GtkTreeView *tv, GList *list);
void IM_refresh_treeview_by_im_list1(GtkTreeView *tv, GList *list);
void IM_treeview_set_selection(GtkTreeView *tv, const gchar *im_id);
void IM_default_create_menu_by_im_list(GtkComboBox *menu, GList *list);
void IM_default_create_menu_by_store(GtkComboBox *menu, GtkListStore *store);
/* end IM */


/* Symbol list control */
void Symbol_treeview_add_column(GtkTreeView *tv);
void Symbol_refresh_treeview_by_symbol_list(GtkTreeView *tv, GList *list);
/* end Symbol */


/* Word list control */
void Word_treeview_add_column(GtkTreeView *tv);
void Word_refresh_treeview_by_word_list(GtkTreeView *tv, GList *list);
/* end Word */

/* Symbol kind list control */
void Symbol_Kind_treeview_add_column(GtkTreeView *tv);
/* end Symbol Kind*/


/* Symbol Cands list control */
void Symbol_Cands_treeview_add_column(GtkTreeView *tv);
void Symbol_Cands_refresh_treeview(GtkTreeView *widget, int idx);
/* end Symbol Cands */


/* Key Cands list control */
void Key_Cands_treeview_add_column(GtkTreeView *tv);
/* end Key Cands */


/* Symbol new list control */
#define Symbol_new_treeview_add_column(a) \
	Symbol_treeview_add_column(a)
#define Symbol_new_refresh_treeview_by_symbol_list(a, b) \
	Symbol_refresh_treeview_by_symbol_list(a, b)
/* end Symbol new*/


/* Word new list control */
#define Word_new_treeview_add_column(a) \
	Word_treeview_add_column(a)
#define Word_new_refresh_treeview_by_word_list(a, b) \
	Word_refresh_treeview_by_word_list(a, b)
/* end Word new */

#endif /* _LIST_CTRL_H */

// vi:ts=4:nowrap:cin:expandtab
